package com.genexususa.eo.bing.data.wsSubclasses;

import com.genexususa.eo.bing.CampaignManagementServiceClasses.Bid;
import org.w3c.dom.Element;

public class GxBid extends Bid {
    public GxBid(Element element) {
        if (element.getElementsByTagName("Amount").getLength() > 0 &&
            element.getElementsByTagName("Amount").item(0).getChildNodes().getLength() > 0) {
            this.setAmount(Double.valueOf(element.getElementsByTagName("Amount").item(0).getChildNodes().item(0).getNodeValue()));
        }
    }
}
